package com.erdos.hyt.mall.controller;/**
 * @auth Liurong
 * @date 2017/3/31.
 */

import com.erdos.hyt.base.model.HytResponse;
import com.erdos.hyt.base.model.ResponseResultHandler;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * test
 *
 * @author liurong
 * @create 2017/3/31
 **/
@Api(value = "mall API")
@RestController
@RequestMapping(value = "/mall")
public class TestController {

    @ApiOperation(value = "测试商城api",notes="查询省",httpMethod ="GET")
    @RequestMapping(value = "/test",method = {RequestMethod.GET},produces ="application/json;charset=UTF-8" )
    public HytResponse test(
            @ApiParam(value = "测试参数",required = true)
            @RequestParam(value = "test")
            Integer test){
        return ResponseResultHandler.handleSuccess(test);
    }
}
